<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header", "default"); ?>
<?php include template("content","header_public", "default"); ?>

<script>

	function toubiao(typeid){
		if(typeid!=2){
			alert('你所在的用户组不允许投标，只有公司用户才可以投标');
			return false;
			
		}
		$('#tbiao').toggle();
		
	}
	function dealtoubiao(typeid){
		
	}
	//$.post('http://cq.zhuang.com/phpcms/index.php?m=member&c=index&a=mini',function(data){
	//	
	//	alert(data);
	//});
</script>
<!-- 内容begin-->
<div id="m_company">
  <div class="weizhi01">你所在的位置：装饰招标</div>
  <div id="zszhaobiao01_b">
    <div class="zszhaobiao01_title">
      <h1>装饰招标</h1>
      <tt><a href="<?php echo APP_PATH;?>index.php?m=content&c=user&a=publish_zhaobiao">免费发布招标信息</a></tt></div>
    <div class="line"></div>
    <div class="zszhaobiao01_b_tt">
      <h1><?php echo $title;?></h1>
      <span>装修招标</span></div>
    <div class="zszhaobiao01_b_ll">
      <dl>
        <dt>装修业主：</dt>
        <dd><?php echo $name;?></dd>
      </dl>
      <dl>
        <dt>所在地址：</dt>
        <dd style="color:#ff6600; font-weight:bold;"><?php echo $title;?></dd>
      </dl>
	  <dl>
        <dt>区域：</dt>
        <dd><?php echo $area;?></dd>
      </dl>
      <dl>
        <dt>装修面积：</dt>
        <dd><?php echo $size;?></dd>
      </dl>
      <dl>
        <dt>装修预算：</dt>
        <dd><?php echo $budget;?></dd>
      </dl>
      <dl>
        <dt>空间类型：</dt>
        <dd><?php echo get_linkagevalue(3377,$decoration_space,'name');?></dd>
      </dl>
      <dl>
        <dt>装修户型：</dt>
        <dd><?php echo get_linkagevalue(3377,$house_type,'name');?></dd>
      </dl>
	  <dl>
        <dt>装修空间：</dt>
        <dd><?php echo $decoration_space;?></dd>
      </dl>
      
      <dl>
        <dt>详细需求：</dt>
        <dd><?php echo $description;?></dd>
      </dl>
     <?php $userid = get_userid();if($userid){$user = get_memberinfo($userid);}?>
      <input name="Input" type="button" <?php if($user['typeid']>0 ) { ?>onclick="return toubiao(<?php echo $user['typeid'];?>);" <?php } else { ?> onclick="location.href='<?php echo APP_PATH;?>index.php?m=member&c=index&a=login&forward=<?php echo urlencode(HTTP_REFERER);?>&siteid=<?php echo $siteid;?>';" <?php } ?> value="我要投标" class="inputbutton11 p14 strong" />
    </div>
    <form action="<?php echo APP_PATH;?>index.php?m=member&c=company&a=zhaobiao_reply" method="post">

	    <div class="zszhaobiao01_b_rr"><span>发布招标</span><span>公司竞标</span><span>在线签约/签订合同</span><span>装修实施/在线评价</span></div>
	   
	  	<input type="hidden" value="<?php echo $username;?>" name="info[username]"/ >
	  	<input type="hidden" value="<?php echo $user['userid'];?>" name="info[userid]"/ >
	    <div class="zszbcompang" id="tbiao" style="display:none">
	      <dl>
	        <dd><strong>推荐参考案例： </strong>
	            <input name="info[caseurl]"  readonly value="<?php echo APP_PATH;?>index.php?m=content&c=company&a=c_case&userid=<?php echo $user['userid'];?>" type="text" class="input" />
	        </dd>
	        <dd><strong>参考报价方案：</strong>
	             <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=41a87cca0c19fc18c59067d445c23a71&action=lists&moreinfo=1&catid=23&num=25&username=%24user%5Busername%5D&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 25;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('moreinfo'=>'1','catid'=>'23','username'=>$user[username],'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->lists(array('moreinfo'=>'1','catid'=>'23','username'=>$user[username],'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
	       <select name="info[quotation]">
	       <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
	       <option value="<?php echo $r['attatchment'];?>"><?php echo $r['title'];?></option>
	       
	       <?php $n++;}unset($n); ?>		
	       </select>	
			<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
	          <font color="#666666"> <!-- 你还未添加报价方案</font> --> >><a  target="_blank" href="<?php echo APP_PATH;?>index.php?m=member&c=content&a=publish&siteid=1&catid=23">现在添加报价方案</a></dd>
	        <dd>
	          <label>回复说明：</label>
	          <textarea name="info[remark]" cols="" rows="" class="input001"></textarea>
	        </dd>
	        <input name="dosubmit" type="submit" onclick="dealtoubiao(<?php echo $user['typeid'];?>)" value="我要回复" style="font-size:14px; font-weight:bold; width:150px; height:30px; margin-left:150px;  margin-top:18px; *margin-top:24px;" />
	      </dl>
	    </div>
    	
    </form>
     <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=f3244f93ad837e5bfc668c6ff8760f11&action=list_zhaobiao_reply&catid=23&num=25&username=%24username&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'list_zhaobiao_reply')) {$pagesize = 25;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>'23','username'=>$username,'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'list_zhaobiao_reply',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->list_zhaobiao_reply(array('catid'=>'23','username'=>$username,'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'list_zhaobiao_reply',));}?>
	      
	       <?php $n=1;if(is_array($data['data'])) foreach($data['data'] AS $r) { ?>
    <div class="zszbcompang">
       
	      
	       
   
      <div class="zszbcompang_title">
        <h3><a href="<?php echo APP_PATH;?>index.php?m=content&c=company&a=company_index&userid=<?php echo $r['userid'];?>"><?php echo $r['companyname'];?></a></h3>
        <a target="_blank" href="<?php echo APP_PATH;?>index.php?m=content&c=company&a=signed&userid=<?php echo $r['userid'];?>" style="float:left; margin-top:12px; margin-right:12px; text-decoration:underline; color:#888; font-size:12px; font-weight:bold;">在线签约</a>
        <div class="t"><?php echo date("Y-m-d", $r[inputtime]);?></div>
        <div class="m"><a href="<?php echo APP_PATH;?>index.php?m=content&c=company&a=c_case&userid=<?php echo $r['userid'];?>">查看该公司>></a></div>
      </div>
      <p style="float:left; text-indent:2em;"> <?php echo $r['remark'];?></p>
       
    </div>
    <?php $n++;}unset($n); ?>		
	    <div class="more"><?php echo $data['page']['nav'];?></div>
	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?> 
  </div>
  <div id="cpy_r01">
    <div class="zszhaobiao01_b_r">
      <div class="zszhaobiao01_b_r_title">
        <h2><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=15">打折公告/团购信息</a></h2>
        <tt><a  href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=15">更多>></a></tt></div>
		 <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=372c19849168b2181cdeb1220dc74f96&action=lists&catid=15&num=9&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 9;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>'15','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->lists(array('catid'=>'15','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
      <div class="zszhaobiao01_b_r_c">
        <ul>
         <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
       	 <li><a href="<?php echo $r['url'];?>"  target="_blank"><?php echo $r['title'];?></a></li>
		  <?php $n++;}unset($n); ?>
          
        </ul>
      </div>
	  <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
    </div>
    <div class="zszhaobiao01_b_r">
      <div class="zszhaobiao01_b_r_title">
        <h2><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=10">装饰学堂</a></h2>
        <tt><a  href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=10">更多>></a></tt></div>
      <div class="zszhaobiao01_b_r_c">
        <ul>
          <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=4fbef516844fb039ff11bfb970acc09e&action=lists&catid=10&num=9&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 9;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>'10','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->lists(array('catid'=>'10','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
        <ul class="list lh24 f14">
				<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
       	 <li><a href="<?php echo $r['url'];?>"  target="_blank"><?php echo $r['title'];?></a></li>
			<?php $n++;}unset($n); ?>
		<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
        </ul>
      </div>
    </div>
    <div class="zszhaobiao01_b_r">
      <div class="zszhaobiao01_b_r_title">
        <h2><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=14">重庆装饰杂谈</a></h2>
        <tt><a  href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=14">更多>></a></tt></div>
      <div class="zszhaobiao01_b_r_c">
        <ul>
          <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=186486b1d31066505e00e7ce22c890a5&action=lists&catid=14&num=9&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 9;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>'14','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->lists(array('catid'=>'14','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
        <ul class="list lh24 f14">
				<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
       	 <li><a href="<?php echo $r['url'];?>"  target="_blank"><?php echo $r['title'];?></a></li>
			<?php $n++;}unset($n); ?>
		<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
        </ul>
      </div>
    </div>
  </div>
</div>
</div>
</div>
<!-- 内容end-->


<?php include template("content","footer"); ?>